package com.jmodata.zxu.controller.manager;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;

@Controller
@RequestMapping()
public class AdminController {

	@RequestMapping("/login")
	public String index() {
		return "login";
	}
	
	/**
	 * 登录成功后跳转到首页
	 * 
	 * @param request
	 * @param response
	 * @return
	 * @throws Exception
	 */
	@RequestMapping("/index")
	public String index(HttpServletRequest request, HttpServletResponse response) throws Exception {
		return "index";
	}
	
	/**
	 * author cjp
	 * @return
	 */
	@RequestMapping("/north")
	public String north() {
		return "/layout/north";
	}

	/**
	 * author cjp
	 * @return
	 */
	@RequestMapping("/west")
	public String west() {
		return "/layout/west";
	}

	/**
	 * author cjp
	 * @return
	 */
	@RequestMapping("/center")
	public String center() {
		return "/layout/center";
	}

	/**
	 * author cjp
	 * @return
	 */
	@RequestMapping("/south")
	public String south() {
		return "/layout/south";
	}

	/**
	 * 跳转到home页面 author cjp
	 * @return
	 */
	@RequestMapping("/home")
	public String home() {
		return "/layout/home";
	}
	
}
